package testJdk.io.other_stream;

import java.io.*;

/**
 * @ClassName : com.io.other_stream.TestOther
 * @Description : 类描述
 * Created by cyd on 2020-12-15 22:22:27
 */
public class TestOther {
    public static void main(String[] args) throws IOException {

        InputStreamReader reader = new InputStreamReader(System.in);

        BufferedReader br = new BufferedReader(reader);

        String data;
        while ((data = br.readLine()) != null && !data.equals("exit")) {
            System.out.println("echo:" + data);
        }
    }
}
